//
//  BCSettingCacheManager.h
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/29.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SettingCacheClearComplete)(void);

NS_ASSUME_NONNULL_BEGIN
/**
 获取缓存信息
 */
@interface BCSettingCacheManager : NSObject

+ (instancetype)sharedCache;


/**
 *needClear 如果size都为0了就不用clear了
 */
@property (nonatomic, assign) BOOL needClear;
/**
 获取缓存大小 byt 获取可能耗时 
 */
- (NSUInteger)getCacheSize;
- (NSString *)getCacheSizeString;

//
- (void)clearCacheComplete:(nullable SettingCacheClearComplete)compelte;

@end

NS_ASSUME_NONNULL_END
